using Microsoft.Extensions.Caching.Distributed;
using Student.ApiHost;

var builder = WebApplication.CreateBuilder(args);
builder.Services
    .ReplaceConfiguration(builder.Configuration)
    .AddApplication<StudentApiHostModule>();

builder.Host.UseAutofac();

var app = builder.Build();
app.InitializeApplication();
app.Run();